<table class="table table-striped table-hover table-nowrap" ng-show="vm.requests">
	<tr>
		<th style="width: 57px;" translate="TORRENTS.TYPE"></th>
		<th class="text-left"><a class="whiteLink" href="" ng-click="vm.onSort({sort:'name'})" translate="TORRENTS.NAME"></a></th>
		<th ng-if="vm.colEdit == 'true'" class="hidden-sm hidden-xs" style="width: 80px;" translate="BUTTONS.BUTTONS"></th>
		<th ng-if="vm.colVote == 'true'" style="width: 50px;"><a class="whiteLink" href="" ng-click="vm.onSort({sort:'votes'})" translate="REQUESTS.VOTE"></a></th>
		<th class="hidden-sm hidden-xs" style="width: 50px;"><a class="whiteLink" href="" ng-click="vm.onSort({sort:'comments'})"><i class="fa fa-comment"></i></a></th>
		<th class="hidden-sm hidden-xs" style="width: 90px;" translate="GENERAL.REPORT"></th>
		<th class="hidden-xs" style="width: 150px;"><a class="whiteLink" href="" ng-click="vm.onSort({sort:'added'})" translate="REQUESTS.ADDED"></a></th>
		<th ng-if="vm.colUser == 'true'" class="hidden-sm hidden-xs text-left" style="width: 200px;" translate="REQUESTS.REQUESTER"></th>
		<th ng-if="vm.colReward == 'true'" class="hidden-xs" style="width: 100px;"><a class="whiteLink" href="" ng-click="vm.onSort({sort:'reward'})" translate="REQUESTS.REWARD"></a></th>
		<th class="hidden-xs" style="width: 100px;" translate="REQUESTS.UPLOAD"></th>
	</tr>
	<tr ng-repeat="request in vm.requests track by request.id">
		<td style="width: 57px;">
			<img class="categoryImage category{{ request.type }}" />
		</td>
		<td class="text-left vert-align">
			<a href="" ui-sref="requests.request({ id: request.id, slug: request.slug })" ng-mouseenter="showPoster = true" ng-mouseleave="showPoster = false">{{ request.request }}<span ng-show="request.season > 0"> ({{ 'REQUESTS.SEASON' | translate }} {{request.season}})</span></a>
			<br />
			<i title="{{ request.comment }}">{{ request.comment }}</i>
			<div class="hoverPoster" ng-if="showPoster && request.imdbid2" style="background-image: url('/img/imdb/{{ ::request.imdbid2 }}.jpg');"></div>
		</td>
		<td ng-if="vm.colEdit == 'true'" class="vert-align">
			<button class="btn btn-default btn-xs" ui-sref="requests.edit({id:request.id})"><i class="fa fa-pencil"></i></button>
			<button class="btn btn-default btn-xs" ng-click="vm.delete({request:request})"><i class="fa fa-trash-o"></i></button>
		</td>
		<td ng-if="vm.colVote == 'true'" class="vert-align"><button class="btn btn-default btn-xs" ng-click="vm.vote({request:request})">{{ request.votes }}</button></td>
		<td class="vert-align hidden-sm hidden-xs" style="width: 50px;">
			<a ng-if="::request.comments > 0" ui-sref="requests.request({id: request.id, slug: request.slug, scrollTo: 'comments'})" ng-bind="::request.comments"></a>
			<span ng-if="::request.comments <= 0">0</span>
		</td>
		<td class="vert-align hidden-sm hidden-xs"><report-button type="request" id="request.id" body="request.request" small="true"></report-button></td>
		<td class="vert-align hidden-xs">{{ ::request.added }}</td>
		<td ng-if="vm.colUser == 'true'" class="vert-align hidden-sm hidden-xs text-left"><user user="request.user"></user></td>
		<td ng-if="vm.colReward == 'true'" class="hidden-xs">
			<b>{{ request.reward }}p</b>
			<br />
			<button class="btn btn-default btn-xs" ng-click="vm.giveReward({request:request})" translate="REQUESTS.RAISE_REWARD"></button>
		</td>
		<td class="vert-align hidden-xs"><button class="btn btn-default btn-xs" ui-sref="upload({requestId:request.id, requestName:request.request})" ng-disabled="request.filled == 1" translate="REQUESTS.UPLOAD"></button></td>
	</tr>
</table>
